package com.dao;

import com.bean.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentDao {
    Student selectById(@Param("p1")String name , @Param("p2")Integer age);

    /*查全部*/
    List<Student> selectAll();
    /*增*/
    int insert(Student student);
    /*改*/
    int update(Student student);
    /*删*/
    int delete(Integer id);
}
